// Copyright (C) 2021 Focus Media Holding Ltd. All Rights Reserved.

package cn.focusmedia.central.${appCode}.tunnel.dao.${modelPackName};

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import cn.focusmedia.central.${appCode}.tunnel.dataobject.${modelPackName}.${className}DO;
import cn.focusmedia.central.${appCode}.tunnel.mapper${dataSource}.${modelPackName}.${className}CommandMapper;
import cn.focusmedia.central.${appCode}.tunnel.mapper${dataSource}.${modelPackName}.${className}QueryMapper;
import cn.focusmedia.fdf.common.dao.BaseDAO;
import lombok.RequiredArgsConstructor;

/**
 * ${className}DAO
 *
 * @author sunliang
 * @version 1.0
 */
@Repository
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ${className}DAO extends BaseDAO<${className}DO> {

    private final ${className}QueryMapper ${objectName}QueryMapper;

    private final ${className}CommandMapper ${objectName}CommandMapper;

    @Override
    public ${className}CommandMapper getCommandMapper() {
        return ${objectName}CommandMapper;
    }

    @Override
    public ${className}QueryMapper getQueryMapper() {
        return ${objectName}QueryMapper;
    }


}